import txios from '../index'
import type { IDataType } from '../types'
import { ablumApi } from './type'
// import type { userID } from './type'

export function getSongsDetail(ID: number) {
  return txios.get<any>({
    url: ablumApi.getSongsDetail,
    params: {
      id: ID
    }
  })
}

export function getpersonalized() {
  return txios.post<any>({
    url: ablumApi.getpersonalized
  })
}
export function getSongInfo(IDs: number[]) {
  let pramIDS = '?ids=' + IDs.map((item) => `${item}`).join(',')
  return txios.get<any>({
    url: ablumApi.getSongInfo + pramIDS
  })
}
